package com.jastar.android.game.richman.logic.handler;

import com.jastar.android.game.richman.logic.Event.BaseEvent;
import com.jastar.android.game.richman.logic.Event.Event;
import com.jastar.android.game.richman.logic.Event.MoneyEvent;
import com.jastar.android.game.richman.logic.card.Card;
import com.jastar.android.game.richman.logic.card.StepCard;

import java.util.List;

public class CellChanceHandler extends CellEventHandler {

    private final Card card = new StepCard("步行卡：可以指定行走步数", 6, 1);

    @Override
    protected void initEvents(List<Event> events) {
        events.add(new BaseEvent("跑步健身，获得一张步行卡.", 6, (a, c, p) -> p.addCard(card)));
        events.add(new MoneyEvent("助人为乐，获得现金：{0}", 3, 1));
        events.add(new MoneyEvent("助人为乐，获得现金：{0}", 3, 1));
        events.add(new MoneyEvent("发放奖金，获得现金：{0}", 3, 1));
        events.add(new MoneyEvent("彩票中奖，获得现金：{0}", 2, 2));
        events.add(new MoneyEvent("酒店就餐，失去现金：{0}", 2, -1));
        events.add(new MoneyEvent("郊区游玩，失去现金：{0}", 2, -1));
        events.add(new MoneyEvent("超速罚款，失去现金：{0}", 2, -1));
        events.add(new MoneyEvent("生病住院，失去现金：{0}", 1, -3));
    }

}
